package com.lin.chapter27;

import java.util.Map;

public class VarExpression extends Expression {
	private String key;

	public VarExpression(String key) {
		this.key = key;
	}

	@Override
	public int interpreter(Map<String, Integer> var) {
		return var.get(key);
	}
}
